package com.easy.framework.database.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 数据模型基增强类
 * </p>
 *
 * @author Yang huijing
 * @since 2023-04-10
 */
@Getter
@Setter
public class SimpleEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT, value = "`created_at`")
    private Date createdAt;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE, value = "`updated_at`")
    private Date updatedAt;
}
